package or.exa.cangguan.mapper;

import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.LoadingPositionDto;
import or.exa.cangguan.entity.po.LoadingPosition;
import or.exa.cangguan.entity.vo.LoadingPositionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoadingPositionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LoadingPosition record);

    int insertSelective(LoadingPosition record);

    String selectByPrimaryKey(String name);

    int updateByPrimaryKeySelective(LoadingPosition record);

    int updateByPrimaryKey(LoadingPosition record);
    
    List<LoadingPositionDto> selectLoadingPosition(@Param("loadingPositionVo") LoadingPositionVo loadingPositionVo, @Param("page") Page page);

    List<String> sealectName();

    int selectLoadingPositionCount(@Param("loadingPositionVo") LoadingPositionVo loadingPositionVo);
}